package com.mall.order.model.entity;

import com.mall.common.annotation.Excel;
import com.mall.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;

@Setter
@Getter
@ApiModel("订单明细表")
public class OrderItemEntity extends BaseEntity {

    @ApiModelProperty("订单关联购物项主键id")
    private Long id;

    @ApiModelProperty("订单主键id")
    @Excel(name = "订单主键id")
    private Long orderId;

    @ApiModelProperty("关联商品id")
    @Excel(name = "关联商品id")
    private Long goodsId;

    @ApiModelProperty("下单时商品的名称")
    @Excel(name = "下单时商品的名称(订单快照)")
    private String goodsName;

    @ApiModelProperty("下单时商品的主图")
    @Excel(name = "下单时商品的主图(订单快照)")
    private String goodsCoverImg;

    @ApiModelProperty("下单时商品的价格")
    @Excel(name = "下单时商品的价格(订单快照)")
    private BigDecimal sellingPrice;

    @ApiModelProperty("数量")
    @Excel(name = "数量(订单快照)")
    private Long goodsCount;

    @ApiModelProperty("商品简介")
    @Excel(name = "商品简介")
    private String goodsIntro;

    @ApiModelProperty("是否需要课程 (0 否 1 是)")
    private String needCourseFlag;

    /** 商品表主键id */
    private Long specsId;

    /** 商品名 */
    @Excel(name = "商品名")
    private String specsName;

    /** 规格标志（0代表单规格 1代表多规格） */
    private String specsFlag;


}
